#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void SeqListTest1()
{
	SL s1;
	SeqListInit(&s1);
	SeqListPushBack(&s1, 1);
	SeqListPushBack(&s1, 2);
	SeqListPushBack(&s1, 3);
	SeqListPushBack(&s1, 4);
	SeqListPushBack(&s1, 5);

	SeqListPrint(&s1);

	SeqListPopBack(&s1);
	SeqListPopBack(&s1);

	SeqListPrint(&s1);

	SeqListPushFront(&s1, 10);
	SeqListPushFront(&s1, 20);
	SeqListPushFront(&s1, 30);

	SeqListPrint(&s1);

	SeqListPopFront(&s1);
	SeqListPopFront(&s1);

	SeqListPrint(&s1);

	SeqListFind(&s1, 2);

}

void SeqListTest2()
{
	SL s1;
	SeqListInit(&s1);
	SeqListPushBack(&s1, 1);
	SeqListPushBack(&s1, 2);
	SeqListPushBack(&s1, 3);
	SeqListPushBack(&s1, 4);
	SeqListPushBack(&s1, 5);

	SeqListPrint(&s1);

	SeqListPushFront(&s1, 10);
	SeqListPushFront(&s1, 20);
	SeqListPushFront(&s1, 30);

	SeqListPrint(&s1);

	SeqListInsert(&s1, 5, 314);
	SeqListInsert(&s1, 2, 1014);

	SeqListPrint(&s1);

	SeqListErase(&s1, 3);
	SeqListPrint(&s1);

	SeqListErase(&s1, 4);
	SeqListPrint(&s1);

	SeqListDestroy(&s1);
}

int main()
{
	//SeqListTest1();
	SeqListTest2();
	return 0;
}